home *** CD-ROM | disk | FTP | other *** search
- /******************************************************************************
- *
- * NSSDC/CDF Print instructions a page at a time.
- *
- * Version 1.0, 25-Jun-91, ST Systems (STX)
- *
- * Modification history:
- *
- * V1.0 25-Jun-91, J Love Original version.
- *
- ******************************************************************************/
-
- #include <stdio.h>
-
- #define MAX_LINES_PER_PAGE 22
-
- /*****************************************************************************
- * PageInst.
- *****************************************************************************/
-
- void PageInst (text)
- char *text[];
- {
- int i;
- int count;
- char key;
-
- count = 0;
-
- for (i = 0; text[i] != NULL; i++) {
- printf ("%s\n", text[i]);
- count++;
- if (count == MAX_LINES_PER_PAGE && text[i+1] != NULL) {
- printf ("\nEnter RETURN for more...");
- scanf ("%c", &key);
- printf ("\n\n");
- count = 0;
- }
- }
-
- return;
- }
-